import ZHCN from './cn'

export enum Langs {
  CN
}

const Mapping = {
  [Langs.CN]: ZHCN
}

export function lang(lang: Langs, namespace: string, key: string, defaultValue: string): string {
  const mapping = _.get(Mapping, [lang, namespace], {})
  return _.get(mapping, key, defaultValue) as unknown as string
}


export const langCN = _.partial(lang, Langs.CN)
